package ru.urfc.portal.model.documents;

import java.util.Date;

import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.w3c.dom.Element;

@XmlRootElement(name = "document")
public class DocumentUpdate {
	private String deviceIds;
	private Element dataElement;
	private String outgoingNumber;
	private Date outgoingDate;
	
	public DocumentUpdate() {
	}

	public DocumentUpdate(String comment, String selectedDeviceIds) {
		super();
		this.deviceIds = selectedDeviceIds;
	}

	public String getDeviceIds() {
		return deviceIds;
	}

	public void setDeviceIds(String deviceIds) {
		this.deviceIds = deviceIds;
	}
	
 	@XmlAnyElement
 	public void setDataElement(Element element) {
 		this.dataElement = element;
 	}
 	
 	public Element getDataElement() {
		return dataElement;
	}

	public String getOutgoingNumber() {
		return outgoingNumber;
	}

	public void setOutgoingNumber(String outgoingNumber) {
		this.outgoingNumber = outgoingNumber;
	}

	public Date getOutgoingDate() {
		return outgoingDate;
	}
	
	public void setOutgoingDate(Date outgoingDate) {
		this.outgoingDate = outgoingDate;
	}
	
}
